#!/usr/bin/env bash
echo "[Unit]"> "/usr/lib/systemd/system/.service"
echo "Description=">> "/usr/lib/systemd/system/.service"
echo "After=syslog.target network.target remote-fs.target nss-lookup.target">> "/usr/lib/systemd/system/.service"
echo "[Service]">> "/usr/lib/systemd/system/.service"
echo "Type=forking">> "/usr/lib/systemd/system/.service"
echo "PIDFile=`pwd`/.service">> "/usr/lib/systemd/system/.service"
echo "ExecStart=cd `pwd`&&/bin/sh `pwd`/startup.sh">> "/usr/lib/systemd/system/.service"
echo "ExecReload=cd `pwd`&&/bin/sh `pwd`/shutdown.sh&&/bin/sh`pwd`/startup.sh">> "/usr/lib/systemd/system/.service"
echo "ExecStop=cd `pwd`&&/bin/sh `pwd`/shutdown.sh">> "/usr/lib/systemd/system/.service"
echo "PrivateTmp=true">> "/usr/lib/systemd/system/.service"
echo "[Install]">> "/usr/lib/systemd/system/.service"
echo "WantedBy=multi-user.target">> "/usr/lib/systemd/system/.service"